package wan.moneybook;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class DefaultListener implements ServletContextListener {

	@Override
	public void contextDestroyed(ServletContextEvent servlet) {}

	@Override
	public void contextInitialized(ServletContextEvent servlet) {
		try {

			// 테이블 새로
			new wan.moneybook.setup.SetupTable().setAll();

			// categoryMap, cardMap
			new InitMap(servlet.getServletContext());

		} catch (Exception e) {
			throw new RuntimeException("Error Listener class. Cause:" + e);
		}
	}
}
